<?php
namespace app\common\model;

class ShopGoodsSkuModel extends BaseModel
{
    protected $name = 'shop_goods_sku'; //定义栏目表
    //开启自动写入时间戳
    protected $autoWriteTimestamp = false;
    // 定义自动完成的属性
    protected $auto = []; //新增修改
    protected $insert = []; //插入
    protected $update = []; //修改
    /*读取器*/

    /*修改器*/


    /*和商品表关联*/
    public function goods()
    {
        return $this->belongsTo('ShopGoodsModel', 'goods_id');
    }

}
